﻿<div id="rightBar">
    #if(${isdefault}==1)
    <div class="aboutUs">
        <h3>${sitename}</h3>
        <div class="rightbarContent">
            <p>${sitedescription}</p>
        </div>
        <div class="quickBtn">
            <span class="rssbt">RSS订阅</span>
            <span class="emailbt">Email订阅</span>
            <span class="weibobt">新浪微博</span>
        </div>
    </div>
    #end
    <!--<div class="rightbarNews">
        <h3>最新发布</h3>
        <div class="rightbarContent">
            <ul>
                #foreach($item in ${recentposts})
                <li>
                    <a href="${item.url}" title="${item.title}">${item.title}</a>
                    <div class="newsInfo">发布时间：${item.createdate} 浏览量：${item.counts}</div>
                </li>
                #end
            </ul>
        </div>
    </div>-->
    <div class="rightbarNews">
        <h3>全站推荐</h3>
        <div class="rightbarContent">
            <ul>
                #foreach($item in ${recommendposts})
                <li>
                    <a href="${item.url}" title="${item.title}">${item.title}</a>
                    <div class="newsInfo">发布时间：${item.createdate} 浏览量：${item.counts}</div>
                </li>
                #end
            </ul>
        </div>
    </div>
    <div class="rightbarNews">
        <h3>置顶文章</h3>
        <div class="rightbarContent hotNews">
            <ul>
                #foreach($item in $topposts)
                <li><span class="hotnewsNum">$velocityCount</span><a href="${item.url}">$item.title</a></li>
                #end
            </ul>
        </div>
    </div>
    <div class="rightbarNews">
        <h3>标签列表</h3>
        <div class="rightbarContent hotNews">
            <ul>
                #foreach($itemtag in $recenttags)
                <li>
                    <span class="hotnewsNum">$velocityCount</span><a href="${itemtag.url}" title="${itemtag.description}">${itemtag.name}--(${itemtag.postcount})</a>
                </li>
                #end
            </ul>
        </div>
    </div>
    <!--#foreach($item in $categories)
    #if($velocityCount==1)
    <div class="rectAd">
        <div class="adtitle">${item.name}</div>
        <div class="adsum">${item.description}</div>

    </div>
    #end
    #if($velocityCount==2)
    <div class="rectAd" style="background: #2F9421;">

        <div class="adtitle">${item.name}</div>
        <div class="adsum">${item.description}</div>

    </div>
    #end
    #if($velocityCount==3)
    <div class="rectAd" style="background: #BB3631;">
        <div class="adtitle">DreamCMS</div>
        <div class="adsum">简单小巧的建站系统</div>
    </div>
    #end
    #end-->
</div>